package com.lg.service;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

@Component
public class Bservice {

	private Aservice aservice;
	
	@Lazy
	public Bservice(Aservice aservice) {
		this.aservice = aservice;
	}
	
	public void test() {
		aservice.test1();
	}
	
	public void test1() {
		System.out.println("Bservice输出：" + aservice);
	}
	
}
